#ifndef KTLISTVIEWSTYLE_H
#define KTLISTVIEWSTYLE_H

#include <QProxyStyle>
#include "KtDef.h"

class KtListViewStyle : public QProxyStyle
{
    Q_OBJECT
    KT_PROPERTY(int, ItemHeight)
    KT_PROPERTY(bool, IsTransparent)
public:
    explicit KtListViewStyle(QStyle *style = nullptr);
    void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = nullptr) const override;
    void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = nullptr) const override;
    QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const override;

signals:

private:
    int _leftPadding;

};

#endif // KTLISTVIEWSTYLE_H
